package com.manyTomany.one_way.model;

import java.io.Serializable;
import java.util.Set;
import java.util.HashSet;

public class Category implements Serializable {

    private Long id;
    private String name;
    private Set<Item> items = new HashSet<>();

    public Category(String name, Set items) {
        this.name = name;
        this.items = items;

    }

    public Category() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Item> getItems() {
        return items;
    }
    public void setItems(Set<Item> items) {
        this.items = items;
    }
}

